﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prueba.Model
{
    public class Categoria:ModelBase
    {
        public int Id
        {
            get { return _Id; }
            set
            {
                if (_Id != value)
                {
                    _Id = value;
                    OnPropertyChanged(IdPropertyName);
                }
            }
        }
        private int _Id;
        public const string IdPropertyName = "Id";

        public string Name
        {
            get { return _Name; }
            set
            {
                if (_Name != value)
                {
                    _Name = value;
                    OnPropertyChanged(NamePropertyName);
                }
            }
        }
        private string _Name;
        public const string NamePropertyName = "Name";
    }
}
